<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<style>
    #contentTable>tbody>.table-selected{
        background-color:#CAD4CF;
    }
    .table-striped > tbody > tr:nth-child(even) > td{
        background-color: transparent;
    }
</style>
<script type="text/javascript">
    //弹出右
    function audit(id) {
        hideShowTableTd('contentTable', '3,4,5,6,7', '2');
        $("#operationLeftDiv").attr("class", "main-content col-sm-4");
        $("#operationRigthCenterDiv").load('${ctx}/operation/operationScheduleAudit/auditForm?id='+id);
        $("#operationRigthCenterDiv").show('normal');
        $("#search").css("display","none");


    }
</script>
<table class="table table-bordered table-striped mg-t datatable" id="contentTable">
    <thead>
    <tr>
        <th>病人名字</th>
        <th>手术时间</th>
        <th>手术室</th>
        <th>手术间</th>
        <th>隔离等级</th>
        <th>麻醉方法</th>
        <th>门诊/住院</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="operationSchedule">
        <tr style="cursor:pointer"
            onclick="modify('${operationSchedule.id}')">
            <td>${operationSchedule.patientName}</td>
            <td><fmt:formatDate value="${operationSchedule.scheduledDate}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
            <td>${operationSchedule.operatingRoomName}</td>
            <td>${operationSchedule.operatingNoName}</td>
            <td>${fns:getDictLabels(operationSchedule.isolationIndicator, 'QUARANTINE_MARK', '')}</td>
            <td>${fns:getDictLabels(operationSchedule.anesthesiaMethod, 'ANESTHESIA_METHOD', '')}</td>
            <td>
                <c:if test="${operationSchedule.inoroutFlag=='0'}">门诊</c:if>
                <c:if test="${operationSchedule.inoroutFlag=='1'}">住院</c:if>
            </td>
            <td>
                <a href="#"
                   onclick="audit('${operationSchedule.id}')"
                   class="btn btn-success btn-xs">确认</a>
                <a href="#" class="applyBt btn btn-danger btn-xs"
                   onclick="confirmExtend('确认要删除该吗？',function(){delLoad('mainCenterDiv','${ctx}/operation/operationScheduleAudit/delete?id=${operationSchedule.id}','${ctx}/operation/operationScheduleAudit/index')})">删除</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>


